<!--
  @author chongw
  @since 2021/05/27
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--搜索条件置于单独的layui-card-body中
    与表格平级(表格置于另一layui-card-body种)
    -->
<div class="layui-card-body" th:fragment="query">

    <!--每个zmn-form-item一行，每行4列
        支持页面自适应，1280分辨率下不折行
        -->
    <div class="zmn-form-item">

        <!--默认情况下标签item-inline占据1列-->
        <div class="item-inline">
            <label class="inline-label">场景ID：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input type="text" name="sceneId" lay-verify="integer" placeholder="场景ID" autocomplete="off" class="layui-input" th:value="${vo.sceneId}"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="item-inline">
            <label class="inline-label">场景名称：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input type="text" name="sceneName" placeholder="场景名称" autocomplete="off" class="layui-input" th:value="${vo.sceneName}"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="item-inline">
            <label class="inline-label">场景分类：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="type" lay-search="">
                            <option value="">全部</option>
                            <option th:each="item:${T(com.zmn.brs.common.enums.SceneTypeEnum).values()}" th:selected="${item.typeId==vo.type}" th:value="${item.typeId}" th:text="${item.typeName}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="zmn-form-item">
        <div class="item-inline">
            <label class="inline-label">修改日期：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input type="text" name="timeSearch" th:value="${vo.timeSearch}" id="timeSearch" lay-filter="timeSearch" placeholder="日期" autocomplete="off" class="layui-input" maxlength="45"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="item-inline">
            <label class="inline-label">状态：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="status" lay-search="">
                            <option value="">全部</option>
                            <option th:each="item:${T(com.zmn.plat.common.dictionary.StatusEnum).values()}" th:selected="${item.code==vo.status}" th:value="${item.code}" th:text="${item.name}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <!--查询与重置按钮
            查询按钮lay-filter属性统一定义为zmn-form-submit
            如查询条件较多，为节省横向空间，查询按钮使用小按钮(无文字“查询”)
            -->
        <div class="item-submit">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon">&#xe615;</i></button>
            <button type="button" class="layui-btn layui-btn-sm layui-btn-primary zmn-form-cancel"><i class="layui-icon">&#xe669;</i></button>
        </div>
    </div>

</div>

